﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ControlAllBCSales.ascx.cs" Inherits="WebUserControl_ControlAllBCSales" %>
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/K_BaoCaoFormLayout.css")%>' type="text/css" />
<link rel="stylesheet" href='<%=ResolveUrl("~/LayoutCss/datePicker.css")%>' type="text/css" />

  <script type="text/javascript">
     function pageLoad() {
      $("#<%= btXem.ClientID %>").click(function() { 
        $.blockUI({
             message: '<h1>Xin vui lòng chờ xử lý</h1>', 
            css: { 
            border: 'none', 
            padding: '15px', 
            backgroundColor: '#f00', 
            opacity: .5, 
            color: '#fff' 
        } }); 
        }); 
         $(function()
     {
	    $("#<%= txtNgay.ClientID %>").datePicker(
		{
			clickInput:true,
			startDate: '01/01/1970'
		}
	);
});
        
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
                function EndRequestHandler(sender, args) {
                        $.unblockUI();
                }
        }  
   
</script>  

    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <Triggers>
    <asp:PostBackTrigger ControlID="btSave" />
    </Triggers>
        <ContentTemplate>
        <fieldset>
    <legend>ALL BC Sales</legend>
    <div class="fm-req">
      <label for="DropTTPP">Chọn TTPP :</label>
       <asp:DropDownList ID="DropTTPP" runat="server">
        </asp:DropDownList>
      </div>
      <div class="fm-req">
      <label for="txtNgay">Chọn ngày :</label>
      <asp:TextBox ID="txtNgay" width="100px"  runat="server"></asp:TextBox>
      </div>
      </fieldset>
      <div>
      <asp:Button ID="btXem" runat="server" onclick="btXem_Click" Text="Xem" />
      &nbsp;&nbsp;
      <asp:Button ID="btSave" runat="server" onclick="btSave_Click" Text="Xuất Excel" />
      </div>
      <br />
      <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" 
        CellPadding="4" ForeColor="#333333">
        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                    <Columns>
                       <asp:BoundField DataField="rpDate" HeaderText="Ngày"/>
                       <asp:BoundField DataField="soTuyenDung" HeaderText="Số tuyển dụng"/>
                       <asp:BoundField DataField="SoCatMaSo" HeaderText="Số cắt mã số" />
                       <asp:BoundField DataField="SoBA" HeaderText="Số BA"  DataFormatString="{0:###,###}" />
                       <asp:BoundField DataField="SoOrder" HeaderText="Số Order" />
                       <asp:BoundField DataField="SoOrderMTD" HeaderText="Số Order MTD" />
                       <asp:BoundField DataField="tiLeHoatDong" HeaderText="Tỉ lệ hoạt động" />
                       <asp:BoundField DataField="soDonViSanPham" HeaderText="Số đ.vị sản phẩm" />
                       <asp:BoundField DataField="soDonViSanPhamTrenDonHang" HeaderText="Số đ.vị sản phẩm trên đơn hàng" />
                       <asp:BoundField DataField="dsoTrungBinhDonHang" DataFormatString="{0:###,###}" HeaderText="D.S trung bình đơn hàng" />
                       <asp:BoundField DataField="doanhSo" DataFormatString="{0:###,###}" HeaderText="Doanh số" />
                       <asp:BoundField DataField="dSoUngHang" DataFormatString="{0:###,###}" HeaderText="D.S ứng hàng" />
                    </Columns>
                </asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>